package net.wzw.constants;

/**
 * @author wzw
 * @date 2025/4/16
 * @Description redis key 常量定义
 */
public class HomeConstant {


    /**
     * 首页feed流食谱id集合，这里采用redis 的 list结构进行存储
     *
     */
    public static final String HOME_FEED_PREFIX = "home_feed:%s";

    /**
     * 首页feed流最新版本号
     */
    public static final String HOME_FEED_LATEST_VERSION_PREFIX = "home_feed_latest_version";

    /**
     * 食谱信息 recipes
     */
    public static final String RECIPES_INFO_PREFIX = "recipes_info";


    /**
     * 默认页大小
     */
    public static final int DEFAULT_PAGE_SIZE = 20;

    /**
     * 分页开始页码
     */
    public static final int PAGE_START = 0;


    /**
     * 下拉刷新随机最小页码
     */
    public static final int PULL_PEFRESH_PAGE_START = 10;


    /**
     * 下拉刷新随机最大页码
     */
    public static final int PULL_PEFRESH_PAGE_END = 50;
}
